package com.springcloud.netflix.eureka.eurekafeignclient.service;

import com.springcloud.netflix.eureka.eurekafeignclient.service.impl.FeignServiceHystrix;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;


@FeignClient(value = "service-ribbon",fallback = FeignServiceHystrix.class)
public interface FeignService {
    @GetMapping(value = "/feignhello")
    String sayHelloFromRibbon(@RequestParam(value = "name") String name);
}
